package cn.com.infosec.ra.dao.logdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.com.infosec.ra.entity.LogEntity;
import cn.com.infosec.ra.util.Pagination;

public interface LogDao {

	public void saveLog(LogEntity log);

	public void saveLogOracle(LogEntity log);

	public List<LogEntity> queryLogByPagerOracle(
			@Param(value = "operatorOrganid") int operatorOrganid,
			@Param(value = "account") String account,
			@Param(value = "targetUser") String targetUser,
			@Param(value = "startTime") String startTime,
			@Param(value = "endTime") String endTime,
			@Param(value = "pager") Pagination<LogEntity> pager);

	public List<LogEntity> queryLog(
			@Param(value = "operatorOrganid") int operatorOrganid,
			@Param(value = "account") String account,
			@Param(value = "targetUser") String targetUser,
			@Param(value = "startTime") String startTime,
			@Param(value = "endTime") String endTime);

	public List<LogEntity> queryLogByPager(
			@Param(value = "operatorOrganid")int operatorOrganid, 
			@Param(value = "account")String account,
			@Param(value = "targetUser")String targetUser, 
			@Param(value = "startTime")String startTime, 
			@Param(value = "endTime")String endTime,
			@Param(value = "pager")Pagination<LogEntity> pager);

}
